﻿project(demo)

cmake_minimum_required(VERSION 2.8)

message("Project Directory: ${PROJECT_SOURCE_DIR}")
set(DEMO_ROOT_DIR ${PROJECT_SOURCE_DIR})
set(CMAKE_CURRENT_BINARY_DIR ${DEMO_ROOT_DIR}/bin)
add_compile_options("/source-charset:utf-8")
add_compile_options("/execution-charset:utf-8")

add_definitions(-D _WINDOWS)
add_definitions(-D SETTARGET_DEVICE_GENERIC_WINDOWS)
add_definitions(-D SETTARGET_DEBUG_ENABLED=0)
add_definitions(-D NO_SSL)

IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
	set(LINK_DIR_FOR_PIS ${CMAKE_CURRENT_SOURCE_DIR}/lib/win_x64)
	add_definitions(-D WIN64)
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
	set(LINK_DIR_FOR_PIS ${CMAKE_CURRENT_SOURCE_DIR}/lib/win32)
	add_definitions(-D WIN32)
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)

add_definitions(-D_CRT_SECURE_NO_WARNINGS)

add_subdirectory("cms")

add_subdirectory("mms")




